cmake_minimum_required(VERSION "3.10")
project("test")

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED On)

file(GLOB "SOURCE_FILE" "../code/*.cpp")
find_package(Threads REQUIRED)

# 单元测试
add_executable("UnitTest" "./UnitTest.cpp" ${SOURCE_FILE})
# target_link_libraries("UnitTest" "pthread")
target_link_libraries("UnitTest" PRIVATE Threads::Threads)

# 性能测试
add_executable("PerformanceTest" "./PerformanceTest.cpp" ${SOURCE_FILE})
# target_link_libraries("PerformanceTest" "pthread")
target_link_libraries("PerformanceTest" PRIVATE Threads::Threads)